package com.ruoyi.web.controller.tool;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

public class PageUtil<T> {
    public void setPage(Page<T> target, Page<T> old) {
        target.setCurrent(old.getCurrent());
        target.setCountId(old.getCountId());
        target.setSize(old.getSize());
        target.setTotal(old.getTotal());
    }
}
